{extend name='layout/base'}
{block name='title'}{__block__}添加地址{/block}
{block name='head'}
<!-- 加载省市联动插件 -->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/static/jq_city/css/city-picker.css"/>
<script type="text/javascript" src="__PUBLIC__/static/jq_city/js/city-picker.data.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/jq_city/js/city-picker.js"></script>
<script type="text/javascript" src="__PUBLIC__/static/jq_city/js/main.js"></script>
{/block}
{block name='content'}

<div class="row left">
    <div class="col-md-2"></div>
    <div class="col-md-8">
        <div class="col-md-4">
            {include file='layout/menu'}             
        </div>      
        <div class="col-md-8">

            <div class="page-header">
                <h1>{$item->page_title}</h1>
            </div>
            <form class="form-horizontal" action="<?php echo url('index/user.AddressAdd/save');?>" method="post">
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">收件人</label>
                    <div class="col-sm-10">
                        <input type="text" name="recipient" class="form-control" id="recipient" placeholder="请输入收件人姓名" value="{$item->recipient}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">联系方式</label>
                    <div class="col-sm-10">
                        <input type="text" name="phone" class="form-control" id="phone" placeholder="请输入收件人电话号码" value="{$item->phone}">
                    </div>
                </div>  
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">城市</label>
                    <div class="col-sm-10">
                        <!--省市联动start-->
                        <div class="docs-methods">
                            <div id="distpicker">
                                <div >
                                    <div style="position: relative;">
                                        <input id="city-picker3" class="form-control" readonly type="text" value="{$item->city}" placeholder="省/市/区" data-toggle="city-picker" name="city">
                                    </div>
                                </div>
                            </div>
                        </div>  
                        <!--省市联动end-->    
                    </div>
                </div> 
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">街道</label>
                    <div class="col-sm-10">
                        <input type="text" name="street" class="form-control" id="street" placeholder="街道/镇/乡/村" value="{$item->street}">
                    </div>
                </div> 
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">详细地址</label>
                    <div class="col-sm-10">
                        <input type="text" name="detailed" class="form-control" id="detailed" placeholder="小区/楼层/门牌号" value="{$item->detailed}">
                    </div>
                </div> 
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" name="r_button" value="r_button" class="btn btn-primary">确认</button>
                    </div>
                </div>                  
            </form>
    
        </div>
    </div>
    <div class="col-md-2"></div>
</div>
  
{/block}